#include "mainwindow.h"
#include <QApplication>
#include "childwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    childWindow c;
    w.show();
    QObject::connect(&w,SIGNAL(showChild()),&c,SLOT(childShow()));
    QObject::connect(&c,SIGNAL(showAdmin()),&w,SLOT(adminShow()));

    return a.exec();
}
